package net.seehope.foodie;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import springfox.documentation.swagger2.annotations.EnableSwagger2;
import tk.mybatis.spring.annotation.MapperScan;

//标了注解,下面run方法里面传进去的就是这个类
//将该类注入到容器当中

/*@Api(tags="redis测试类，用来存取基本数据")
 * @ApiOperation("向redis中添加一个用户")
 * @ApiParam("用户数据模型")
 * @ApiModel("用户数据基本模型")
 * @ApiModelProperty("id必须不为空")
 * 
 */


//@ComponentScan(basePackages = {"net.seehope.foodie"})
//扫描哪些包并生成接口，并放到Spring容器内
@MapperScan("net.seehope.**.mapper")
@SpringBootApplication
//定时作业功能
@EnableScheduling
//Springboot默认整合了quartz框架
@EnableAsync
@EnableSwagger2
@ComponentScan(basePackages = {"org.n3r.idworker","net.seehope.foodie"})
public class Application {

public static void main(String[] args) throws Exception {
	
	SpringApplication.run(Application.class, args);
	}

}
